package cloud.zhixinglu.www.spring.boot.log4j2.controller;

import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * TestController
 * </p>
 *
 * @author weixin
 * @date 2023/6/17 15:28
 */
@Log4j2
@RestController
public class TestController {

    @GetMapping("test")
    public void test(){
        int a = 1 / 0;
        log.info("info log");
        log.debug("debug log");
        log.warn("warn log");
        log.error("error log");
    }


}
